This program queries the amount of data in the serial buffer using the DAV (Data Available) object, if there is data there it will read the exact amount of data that is there into an accumulator.  Also at the same time it will look for the LF (line feed) character dec 10, if the LF is there then it will output the data collected in the accumulator onto the output pin (X) of the userfunction.

The program was developed to acomodate the strangenesses of the serial interface of our products.



Stuart ROberts
Validation Analyst

Siemens Datatrak Location & Information Systems Ltd
Swindon
Wiltshire
UK